import request from '@/api/request.js'

//首页
export function getHomeApiData(data) {
	return request.request({
		url: `api/wash/index/washIndex`,
		method: 'GET',
		data: data,
	})
}

//分类商品
export function getWashGoodsApiList(data) {
	return request.request({
		url: `api/wash/goods/index`,
		method: 'GET',
		data: data,
	})
}

//我的地址
export function getMyAddrApiList(data) {
	return request.request({
		url: `api/wash/address/index`,
		method: 'GET',
		data: data,
	})
}

//我的地址-详情
export function getMyAddrApiDetail(data) {
	return request.request({
		url: `api/wash/address/detail`,
		method: 'GET',
		data: data,
	})
}

//我的地址-添加/编辑
export function myAddrApiSave(data) {
	return request.request({
		url: `api/wash/address/add`,
		method: 'POST',
		data: data,
	})
}

//我的地址-设置
export function myAddrApiSet(data) {
	return request.request({
		url: `api/wash/address/setDefault`,
		method: 'POST',
		data: data,
	})
}


//我的地址-删除
export function myAddrApiDel(data) {
	return request.request({
		url: `api/wash/address/del`,
		method: 'POST',
		data: data,
	})
}

//修改个人信息
export function myApiEdit(data) {
	return request.request({
		url: `api/wash/index/editUser`,
		method: 'POST',
		data: data,
	})
}


//购物车
export function myCarApi(data) {
	return request.request({
		url: `api/wash/goods/car`,
		method: 'GET',
		data: data,
	})
}

//购物车-删除
export function delCarApi(data) {
	return request.request({
		url: `api/wash/goods/delCar`,
		method: 'POST',
		data: data,
	})
}

//加入购物
export function addCarApi(data) {
	return request.request({
		url: `api/wash/goods/addCar`,
		method: 'POST',
		data: data,
	})
}


//美容创建订单
export function beautifyAddOrder(data) {
	return request.request({
		url: `api/beautify/index/addOrder`,
		method: 'POST',
		data: data,
	})
}

//驾考创建订单
export function travelAddOrder(data) {
	return request.request({
		url: `api/travel/index/addOrder`,
		method: 'POST',
		data: data,
	})
}
//channel创建订单
export function channelBuy(data) {
	return request.request({
		url: `api/wash/channel/buy`,
		method: 'POST',
		data: data,
	})
}

//xmy创建订单
export function xmyAddOrder(data) {
	return request.request({
		url: `api/xmy/index/addOrder`,
		method: 'POST',
		data: data,
	})
}

//购物数量
export function getCarNumApi(data) {
	return request.request({
		url: `api/wash/goods/getCars`,
		method: 'GET',
		data: data,
	})
}

//购物车-提交
export function carSublimtApi(data) {
	return request.request({
		url: `api/wash/order/addOrder`,
		method: 'POST',
		data: data,
	})
}

//洗护订单详情
export function orderApiDetail(data) {
	return request.request({
		url: `api/wash/order/detail`,
		method: 'GET',
		data: data,
	})
}

//美容-订单详情
export function beautifyOrderDetail(data) {
	return request.request({
		url: `api/beautify/index/orderDetail`,
		method: 'GET',
		data: data,
	})
}

//channel-订单详情
export function channelOrderDetail(data) {
	return request.request({
		url: `api/wash/channel/orderDetail`,
		method: 'GET',
		data: data,
	})
}
//驾考-订单详情
export function travelOrderDetail(data) {
	return request.request({
		url: `api/travel/index/orderDetail`,
		method: 'GET',
		data: data,
	})
}

//xmy-订单详情
export function xmyOrderDetail(data) {
	return request.request({
		url: `api/xmy/index/orderDetail`,
		method: 'GET',
		data: data,
	})
}

//附近门店-列表
export function getNearbyStoresApiList(data) {
	return request.request({
		url: `api/wash/stores/index`,
		method: 'GET',
		data: data,
	})
}

//美容门店-列表
export function beautifyStores(data) {
	return request.request({
		url: `api/beautify/index/getStores`,
		method: 'GET',
		data: data,
	})
}


//附近门店-map
export function getNearbyStoresApiMap(data) {
	return request.request({
		url: `api/wash/stores/map`,
		method: 'GET',
		data: data,
	})
}

//我的订单
export function getOrderApiList(data) {
	return request.request({
		url: `api/wash/order/index`,
		method: 'GET',
		data: data,
	})
}
//美容-订单
export function beautifyOrderList(data) {
	return request.request({
		url: `api/beautify/order/index`,
		method: 'GET',
		data: data,
	})
}

//驾考-订单
export function travelOrderList(data) {
	return request.request({
		url: `api/travel/order/index`,
		method: 'GET',
		data: data,
	})
}

//xmy-订单
export function xmyOrderList(data) {
	return request.request({
		url: `api/xmy/order/index`,
		method: 'GET',
		data: data,
	})
}


//我的订单-取消
export function orderApiCancel(data) {
	return request.request({
		url: `api/wash/order/cancel`,
		method: 'POST',
		data: data,
	})
}

//我的订单-确认收货
export function orderApiTake(data) {
	return request.request({
		url: `api/wash/order/verifyReceive`,
		method: 'POST',
		data: data,
	})
}


//我的订单-确认瑕疵
export function orderApiFlaw(data) {
	return request.request({
		url: `api/wash/order/verifyFlaw`,
		method: 'POST',
		data: data,
	})
}

//我的订单-评价
export function orderApiComment(data) {
	return request.request({
		url: `api/wash/order/comment`,
		method: 'POST',
		data: data,
	})
}

//我的信息
export function mineApiInfo(data) {
	return request.request({
		url: `api/wash/index/mine`,
		method: 'GET',
		data: data,
	})
}

//城市合伙人申请
export function cityPartnerApplyApi(data) {
	return request.request({
		url: `api/wash/collaborate/apply`,
		method: 'POST',
		data: data,
	})
}

//优惠券-列表
export function getCouponApiList(data) {
	return request.request({
		url: `api/wash/coupon/index`,
		method: 'GET',
		data: data,
	})
}

//优惠券-领取
export function neckCouponApi(data) {
	return request.request({
		url: `api/wash/coupon/getCoupon`,
		method: 'POST',
		data: data,
	})
}

//我的优惠券
export function getMyCouponApiList(data) {
	return request.request({
		url: `api/wash/coupon/mine`,
		method: 'GET',
		data: data,
	})
}

//推广商品
export function getPromotionApiList(data) {
	return request.request({
		url: `api/wash/distribution/popularize`,
		method: 'GET',
		data: data,
	})
}

//支付提交
export function payWashApiSub(data) {
	return request.request({
		url: `api/wash/pay/wash`,
		method: 'POST',
		data: data,
	})
}

//美容支付提交
export function payBeautify(data) {
	return request.request({
		url: `api/beautify/order/pay`,
		method: 'POST',
		data: data,
	})
}

//驾考支付提交
export function payTravel(data) {
	return request.request({
		url: `api/travel/order/pay`,
		method: 'POST',
		data: data,
	})
}
//驾考支付提交
export function channelGetSign(data) {
	return request.request({
		url: `api/wash/channel/getSign`,
		method: 'POST',
		data: data,
	})
}

//免单列表
export function freeWashList(data) {
	return request.request({
		url: `api/wash/free/index`,
		method: 'GET',
		data: data,
	})
}
//我的免单列表
export function freeMyActivity(data) {
	return request.request({
		url: `api/wash/free/myActivity`,
		method: 'GET',
		data: data,
	})
}
//发起活动
export function goActivity(data) {
	return request.request({
		url: `api/wash/free/goActivity`,
		method: 'POST',
		data: data,
	})
}
//活动详情
export function activityInfo(data) {
	return request.request({
		url: `api/wash/free/activityInfo`,
		method: 'GET',
		data: data,
	})
}
//助力
export function helpActivityApi(data) {
	return request.request({
		url: `api/wash/free/helpActivity`,
		method: 'GET',
		data: data,
	})
}




//秒杀列表
export function payWashSeckillApiList(data) {
	return request.request({
		url: `api/wash/seckill/index`,
		method: 'GET',
		data: data,
	})
}

//秒杀详情
export function payWashSeckillApiDetail(data) {
	return request.request({
		url: `api/wash/seckill/detail`,
		method: 'GET',
		data: data,
	})
}


//
export function getLogisticsInfo(data) {
	return request.request({
		url: `api/wash_admin/orders/getLogisticsInfo`,
		method: 'GET',
		data: data,
	})
}


// ---美容 ----
export function beautifyIndex(data) {
	return request.request({
		url: `api/beautify/index/index`,
		method: 'GET',
		data: data,
	})
}

//商品列表
export function beautifyGoodsList(data) {
	return request.request({
		url: `api/beautify/index/goodsList`,
		method: 'GET',
		data: data,
	})
}


// ---易驾考 ----
export function travelIndex(data) {
	return request.request({
		url: `api/travel/index/index`,
		method: 'GET',
		data: data,
	})
}

// ---xmy ----
export function xmyIndex(data) {
	return request.request({
		url: `api/xmy/index/index`,
		method: 'GET',
		data: data,
	})
}

//商品列表
export function travelGoodsList(data) {
	return request.request({
		url: `api/travel/index/goodsList`,
		method: 'GET',
		data: data,
	})
}

//商品列表
export function xmyGoodsList(data) {
	return request.request({
		url: `api/xmy/index/goodsList`,
		method: 'GET',
		data: data,
	})
}
//运费提示
export function getFreight(data) {
	return request.request({
		url: `api/wash/index/getFreight`,
		method: 'GET',
		data: data,
	})
}
